/**
 * 公司列表
 */
import React, { useEffect, useState } from 'react';
import Query from '@src/components/QueryTools';
import { fields } from "./setting"
import TableCompon from './components/TableCompon';
const SchoolCompon = (props) => {

    const dataSource = () => {
        let data = []
        for (let i = 0; i < 66; i++) {
            data.push(
                {
                    key: i,
                    companyNname: 'Apple' + i,
                    department: '研发部',
                    position: '管理',
                    grading: '高级工程师'
                }
            )
        }
        return data
    }

    const commit = () => { }

    const handleChange = () => { }

    const changePage = (e) => {
        console.log(e);
    }

    return (
        <>
            <Query fields={fields} commit={commit} change={handleChange}></Query>
            <TableCompon dataSource={dataSource()} change={changePage} />
        </>
    )
}

export default SchoolCompon